﻿<%@ Page Title="" Language="C#" MasterPageFile="~/HomePage.master" AutoEventWireup="true"
    CodeFile="CategoryPage.aspx.cs" Inherits="CategoryPage" %>

<%@ Import Namespace="AppCommon" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>Category |
        <%= Constants.S_TITLE_BLOG %></title>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="row">
        <!-- new post -->
        <asp:Repeater runat="server" ID="repeaterPosts">
            <ItemTemplate>
                <div class="col-md-12 fixie-new-post">
                    <p class="line-color">
                        <span class="line-color-green"></span><span class="line-color-blue"></span><span
                            class="line-color-orange"></span><span class="line-color-purple"></span>
                    </p>
                    <h3>
                        <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# "~/post/" + Eval("UniqueId") %>'><%# Eval("Title") %></asp:HyperLink></h3>
                    <p>
                        <asp:HyperLink ID="HyperLink2" runat="server" NavigateUrl='<%# "~/profile/" + Eval("IdUser") %>'><i class="fa fa-user"></i> <%# GetNameofUser(Convert.ToInt32(Eval("IdUser"))) %></asp:HyperLink>
                        <asp:HyperLink ID="HyperLink3" runat="server" NavigateUrl='<%# "~/category/" + Eval("IdCategory") %>'><i class="fa fa-folder-o"></i> <%# GetNameofCategory(Eval("IdCategory").ToString())%></asp:HyperLink>
                        <i class="fa fa-calendar-o"></i>
                        <%# Eval("LastDateUpdated") %>
                        <i class="fa fa-eye"></i>
                        <%# Eval("View") %>
                        <span class="float-right">
                            <asp:HyperLink ID="HyperLink4" runat="server" CssClass="fb-like" data-href='<%# "~/post/" + Eval("UniqueId") %>'
                                data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"
                                EnableViewState="False"></asp:HyperLink>
                            <%--<i class="fb-like" data-href='<%# "~/post/" + Eval("UniqueId") %>' 
                    data-layout="button_count" data-action="like" data-show-faces="true" data-share="true"></i>--%>
                        </span>
                    </p>
                    <p class="postdetail-content">
                        <%# Eval("Description") %></p>
                    <p class="thumbnail">
                        <asp:Image ID="Image1" CssClass="img-responsive" ImageUrl='<%# Constants.UPLOAD_IPost + Eval("ImageThumbnail") %>'
                            data-src='<%# Constants.UPLOAD_IPost + Eval("ImageThumbnail") %>' AlternateText='<%# Eval("Title") %>'
                            runat="server" />
                    </p>
                    <p>
                        <i class="fa fa-tags"></i>
                        <%# SpilitTag(Eval("Tags").ToString()) %></p>
                </div>
            </ItemTemplate>
        </asp:Repeater>
        <!-- new post -->
    </div>
    <div class="row">
        <div class="col-lg-12">
            <span class="hidden"></span><span class="hidden">
                <asp:Literal runat="server" ID="litNextpage"></asp:Literal></span> <span class="hidden">
                    <asp:Literal runat="server" ID="litPrepage"></asp:Literal></span>
            <ul class="pager">
                <li>
                    <asp:HyperLink CssClass="previous" runat="server" ID="linkPre">&larr; Newer</asp:HyperLink>
                </li>
                <li>
                    <asp:Literal runat="server" ID="litCurrentPage"></asp:Literal>
                    /
                    <asp:Literal runat="server" ID="litTotalPage"></asp:Literal></li>
                <li>
                    <asp:HyperLink CssClass="next" runat="server" ID="linkNext" NavigateUrl="~/page/1">Older &rarr;</asp:HyperLink>
                </li>
            </ul>
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
</asp:Content>
